<?php

namespace pmvc\mvc\controller;

use pmvc\mvc\Controller;

use pmvc\mvc\Request;
use pmvc\mvc\Response;

/**
 * Simple {@link Controller} implementation for creating
 * {@link Controller}s that only have a view.
 *
 */
class ViewOnlyController
	implements Controller {

	private $viewName;

	/**
	 * {@inheritDoc}
	 */
	public function handleRequest(Request $request, Response $response) {
		return $this->viewName;
	}

	public function setViewName($viewName) {
		$this->viewName = $viewName;
	}
}

?>
